#include <iostream>
using namespace std;
class Singleton{
public:
    static Singleton & getinstance(){
     static Singleton s;
        return s;
    }
Singleton & operator=(const Singleton& rhs)=delete;
Singleton(const Singleton& rhs)=delete;
private:
    Singleton(){
        cout<<"Singleton"<<endl;
    }
};
void test(){
   Singleton &s1=Singleton::getinstance();
    cout<<&s1<<endl;
}
int main(int argc, char * argv[]){
    test();
    return 0;
}

